package com.zp.datax.dao;


import com.zp.datax.core.model.DataxJobLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DataxJobLogDao {

    List<DataxJobLog> findAll();

    List<DataxJobLog> pageList(@Param("offset") int offset,
                               @Param("pagesize") int pagesize,
                               @Param("taskId") int taskId,
                               @Param("status") int status,
                               @Param("startTime") String startTime,
                               @Param("endTime") String endTime);

    int pageListCount(@Param("taskId") int taskId,
                      @Param("status") int status,
                      @Param("startTime") String startTime,
                      @Param("endTime") String endTime);

    int save(DataxJobLog dataxJobLog);

    int update(DataxJobLog dataxJobLog);

    int remove(@Param("sysId") int sysId);

    int removeByCreateTime(@Param("createTime") String createTime);

    DataxJobLog load(@Param("sysId") int sysId);

    String findMin();
}
